package lib.bone.audit.workload.dao;

import lib.bone.audit.workload.domain.WorkloadUseLog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WorkloadUseLogDAO extends JpaRepository<WorkloadUseLog,String> {
    /**
     * 根据工作量记录ID查询
     * @param workloadId
     * @return
     */
    List<WorkloadUseLog> findByWorkloadId(String workloadId);

    List<WorkloadUseLog> findByUserId(Long userId);

    List<WorkloadUseLog> findByUserIdAndCycleId(Long userId,String cycleId);



}
